import request from './index';

const musicRequest = new request({
	baseURL: import.meta.env.VITE_MUSIC,
	timeout: Number(import.meta.env.VITE_TIME_OUT),
	params: {
		timestamp: +new Date(), // 加上时间戳
	},
	interceptors: {
		responseIntercepor(res) {
			const { data } = res;
			return data;
		},
	},
});

export default musicRequest;
